import i18n from '@/utils/i18n'
export const rules = {
  name: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.mpmc'), trigger: 'blur' }
    // { min: 1, max: 20, message: i18n.t('message.cdyds'), trigger: 'blur' }
  ],
  projects: [
    { required: true, message: i18n.t('message.qzsxzygxgxm'), trigger: 'change' }
  ],
  price: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.mpjg'), trigger: 'blur' }
  ],
  channel: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.xsqd'), trigger: 'blur' }
  ],
  saleDate: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.xssd'), trigger: 'change' }
  ],
  circulationDay: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.rfxsl'), trigger: 'change' }
  ],
  discountType: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.zklx'), trigger: 'change' }
  ],
  ticketPic: [
    { required: true, message: i18n.t('message.qsc') + i18n.t('message.piaoyan'), trigger: 'blur' }
  ],
  info: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.mpxq'), trigger: 'blur' }
  ],
  purchaseNotes: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.gmxz'), trigger: 'blur' }
  ],
  type: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.mpyxq'), trigger: 'change' }
  ],
  timeFrameUsed: [
    { required: true, message: i18n.t('message.qxz') + i18n.t('message.sysd'), trigger: 'change' }
  ],
  duration: [
    { required: true, message: i18n.t('message.qsr') + i18n.t('message.sysc'), trigger: 'blur' }
  ]
}
export const applyTimesOptions = [
  {
    value: '7',
    label: i18n.t('message.z7'),
    disable: false
  },
  {
    value: '1',
    label: i18n.t('message.z1'),
    disable: false
  },
  {
    value: '2',
    label: i18n.t('message.z2'),
    disable: false
  },
  {
    value: '3',
    label: i18n.t('message.z3'),
    disable: false
  },
  {
    value: '4',
    label: i18n.t('message.z4'),
    disable: false
  },
  {
    value: '5',
    label: i18n.t('message.z5'),
    disable: false
  },
  {
    value: '6',
    label: i18n.t('message.z6'),
    disable: false
  }
]
